sign: Fix typo in error messages and comments
authorDaiki Ueno <dueno@redhat.com>
Fri, 12 Jul 2024 06:29:58 +0000 (15:29 +0900)
committerDaiki Ueno <dueno@redhat.com>
Tue, 18 Mar 2025 07:21:00 +0000 (16:21 +0900)
Signed-off-by: Daiki Ueno <dueno@redhat.com>
man/ostree-sign.xml
src/libostree/ostree-sign-ed25519.c
src/libotcore/otcore-ed25519-verify.c
tests/test-signed-commit.sh

index eb63f7ff83dcfaf6b423d121a72142b65729447e..508a6ca22b70c8fe6cb6429fb9e8de6c6329686d 100644 (file)
@@ -81,7 +81,7 @@ License along with this library. If not, see <https://www.gnu.org/licenses/>.
                 <listitem><para><filename>/etc/ostree/trusted.ed25519.d</filename></para></listitem>
                 <listitem><para><filename>/etc/ostree/revoked.ed25519.d</filename></para></listitem>
                 <listitem><para><filename>/usr/share/ostree/trusted.ed25519.d</filename></para></listitem>
-                <listitem><para><filename>/usr/share/ostree/rvokeded.ed25519.d</filename></para></listitem>
+                <listitem><para><filename>/usr/share/ostree/revoked.ed25519.d</filename></para></listitem>
             </itemizedlist>
         </para>
     </refsect1>
index 001615d95322534bcaaed75c51c57d8a1480db6e..e0e3ac4613d4399381fa7e0f0708bd769f53bb5e 100644 (file)
@@ -152,7 +152,7 @@ ostree_sign_ed25519_data (OstreeSign *self, GBytes *data, GBytes **signature,
   if (!pkey)
     {
       EVP_MD_CTX_free (ctx);
-      return glnx_throw (error, "openssl: Failed to initialize ed5519 key");
+      return glnx_throw (error, "openssl: Failed to initialize ed25519 key");
     }
 
   size_t len;
index 1c0ec2b83e6c4f110ab995a6b5716ac5fe756df4..24f173b44528a434e4c709c886d64680d192a240 100644 (file)
@@ -97,7 +97,7 @@ otcore_validate_ed25519_signature (GBytes *data, GBytes *public_key, GBytes *sig
   if (!pkey)
     {
       EVP_MD_CTX_free (ctx);
-      return glnx_throw (error, "openssl: Failed to initialize ed5519 key");
+      return glnx_throw (error, "openssl: Failed to initialize ed25519 key");
     }
   if (EVP_DigestVerifyInit (ctx, NULL, NULL, NULL, pkey) != 0
       && EVP_DigestVerify (ctx, signature_buf, OSTREE_SIGN_ED25519_SIG_SIZE,
index cf1cd1c8527bbe2c823a8f6b4df4fa59d89d6dc9..73218528ce46c3702bfa9de23a99d2d57a53e1f1 100755 (executable)
@@ -101,7 +101,7 @@ ${CMD_PREFIX} ostree  --repo=${test_tmpdir}/repo sign --verify --sign-type=ed255
 ${CMD_PREFIX} ostree  --repo=${test_tmpdir}/repo sign --verify --sign-type=ed25519 ${COMMIT} $(gen_ed25519_random_public) $(gen_ed25519_random_public) ${PUBLIC} $(gen_ed25519_random_public) $(gen_ed25519_random_public)
 echo "ok ed25519 signature verified"
 
-# Check if we able to use all available modules to sign the same commit
+# Check if we are able to use all available modules to sign the same commit
 echo "Unsigned commit for multi-sign" >> file.txt
 ${CMD_PREFIX} ostree --repo=${test_tmpdir}/repo commit -b main -s 'Unsigned commit'
 COMMIT="$(ostree --repo=${test_tmpdir}/repo rev-parse main)"